POV-Ray : Newsgroups : povray.general : An observation of concern : Re: An observation of concern Server Time
9 Aug 2024 03:24:43 EDT (-0400)
  Re: An observation of concern  
From: Warp
Date: 16 Oct 2000 12:21:29
Message: <39eb2b09@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
: POV-Ray has build-in memory management.  Depending of compile-time settings
: it can either just keep track of all allocated memory and free it at the end
: of a render (i.e. after the last frame of an animation has been rendered),
: or even create a log file of all not freed blocks of memory, together with
: the line in which they were allocated.  There are some more options, but
: just look for yourself in mem.c/pov_mem.cpp. Usually this is a big help in
: finding leaks.

  Yes, that kind of "self-made" memory management is of big help, of course.
  What I wonder is that if that library can report unfreed memory at the
end of the program, why there are memory leaks in povray?

  Btw, not freeing allocated memory in the right place but letting the
library to do it is usually a sign of a bug.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.